package com.dinpay.plugin.d;

import android.util.Xml;
import com.dinpay.plugin.b.a;
import com.dinpay.plugin.b.b;
import com.dinpay.plugin.b.c;
import com.dinpay.plugin.b.d;
import com.dinpay.plugin.b.e;
import com.dinpay.plugin.b.g;
import com.dinpay.plugin.b.h;
import com.dinpay.plugin.b.i;
import com.dinpay.plugin.b.j;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import org.xmlpull.v1.XmlPullParser;

public final class f
{
  public static c a(InputStream paramInputStream)
  {
    c localc = new c();
    ArrayList localArrayList = new ArrayList();
    XmlPullParser localXmlPullParser = Xml.newPullParser();
    localXmlPullParser.setInput(paramInputStream, "utf-8");
    int i = localXmlPullParser.getEventType();
    h localh = null;
    if (i != 1)
    {
      switch (i)
      {
      default:
      case 2:
      case 3:
      }
      while (true)
      {
        i = localXmlPullParser.next();
        break;
        if ("is_success".equals(localXmlPullParser.getName()))
        {
          localc.b(localXmlPullParser.nextText());
        }
        else if ("gatewayid".equals(localXmlPullParser.getName()))
        {
          localc.c(localXmlPullParser.nextText());
        }
        else if ("digital_sign".equals(localXmlPullParser.getName()))
        {
          localc.m(localXmlPullParser.nextText());
        }
        else if ("tn".equals(localXmlPullParser.getName()))
        {
          localc.d(localXmlPullParser.nextText());
        }
        else if ("merchant_id".equals(localXmlPullParser.getName()))
        {
          localc.e(localXmlPullParser.nextText());
        }
        else if ("trade_no".equals(localXmlPullParser.getName()))
        {
          localc.f(localXmlPullParser.nextText());
        }
        else if ("trade_time".equals(localXmlPullParser.getName()))
        {
          localc.g(localXmlPullParser.nextText());
        }
        else if ("trade_sign".equals(localXmlPullParser.getName()))
        {
          localc.h(localXmlPullParser.nextText());
        }
        else if ("txmoney".equals(localXmlPullParser.getName()))
        {
          localc.i(localXmlPullParser.nextText());
        }
        else if ("orderkey".equals(localXmlPullParser.getName()))
        {
          localc.j(localXmlPullParser.nextText());
        }
        else if ("orderinfo".equals(localXmlPullParser.getName()))
        {
          localc.k(localXmlPullParser.nextText());
        }
        else if ("error_code".equals(localXmlPullParser.getName()))
        {
          localc.l(localXmlPullParser.nextText());
        }
        else if ("token".equals(localXmlPullParser.getName()))
        {
          localc.a(localXmlPullParser.nextText());
        }
        else if ("merchantname".equals(localXmlPullParser.getName()))
        {
          localc.n(localXmlPullParser.nextText());
        }
        else if ("paychannel".equals(localXmlPullParser.getName()))
        {
          localh = new h();
        }
        else if ("id".equals(localXmlPullParser.getName()))
        {
          localh.a(localXmlPullParser.nextText());
        }
        else if ("bankcode".equals(localXmlPullParser.getName()))
        {
          localh.b(localXmlPullParser.nextText());
        }
        else if ("name".equals(localXmlPullParser.getName()))
        {
          localh.c(localXmlPullParser.nextText());
        }
        else if ("channelcode".equals(localXmlPullParser.getName()))
        {
          localh.d(localXmlPullParser.nextText());
        }
        else if ("cardtype".equals(localXmlPullParser.getName()))
        {
          localh.e(localXmlPullParser.nextText());
          continue;
          if (("paychannel".equals(localXmlPullParser.getName())) && (localh != null))
          {
            localArrayList.add(localh);
            localc.a(localArrayList);
            localh = null;
          }
        }
      }
    }
    return localc;
  }

  public static d b(InputStream paramInputStream)
  {
    d locald = new d();
    XmlPullParser localXmlPullParser = Xml.newPullParser();
    localXmlPullParser.setInput(paramInputStream, "utf-8");
    int i = localXmlPullParser.getEventType();
    if (i != 1)
    {
      switch (i)
      {
      default:
      case 2:
      }
      while (true)
      {
        i = localXmlPullParser.next();
        break;
        if ("merchant_code".equals(localXmlPullParser.getName()))
          locald.a(localXmlPullParser.nextText());
        else if ("notify_url".equals(localXmlPullParser.getName()))
          locald.b(localXmlPullParser.nextText());
        else if ("interface_version".equals(localXmlPullParser.getName()))
          locald.c(localXmlPullParser.nextText());
        else if ("sign_type".equals(localXmlPullParser.getName()))
          locald.d(localXmlPullParser.nextText());
        else if ("sign".equals(localXmlPullParser.getName()))
          locald.e(localXmlPullParser.nextText());
        else if ("order_no".equals(localXmlPullParser.getName()))
          locald.f(localXmlPullParser.nextText());
        else if ("order_time".equals(localXmlPullParser.getName()))
          locald.g(localXmlPullParser.nextText());
        else if ("order_amount".equals(localXmlPullParser.getName()))
          locald.h(localXmlPullParser.nextText());
        else if ("product_name".equals(localXmlPullParser.getName()))
          locald.i(localXmlPullParser.nextText());
        else if ("redo_flag".equals(localXmlPullParser.getName()))
          locald.n(localXmlPullParser.nextText());
        else if ("product_code".equals(localXmlPullParser.getName()))
          locald.k(localXmlPullParser.nextText());
        else if ("product_num".equals(localXmlPullParser.getName()))
          locald.l(localXmlPullParser.nextText());
        else if ("product_desc".equals(localXmlPullParser.getName()))
          locald.m(localXmlPullParser.nextText());
        else if ("extra_return_param".equals(localXmlPullParser.getName()))
          locald.j(localXmlPullParser.nextText());
        else if ("extend_param".equals(localXmlPullParser.getName()))
          locald.o(localXmlPullParser.nextText());
      }
    }
    return locald;
  }

  public static g c(InputStream paramInputStream)
  {
    g localg = new g();
    ArrayList localArrayList = new ArrayList();
    XmlPullParser localXmlPullParser = Xml.newPullParser();
    localXmlPullParser.setInput(paramInputStream, "utf-8");
    int i = localXmlPullParser.getEventType();
    j localj = null;
    if (i != 1)
    {
      switch (i)
      {
      default:
      case 2:
      case 3:
      }
      while (true)
      {
        i = localXmlPullParser.next();
        break;
        if ("is_success".equals(localXmlPullParser.getName()))
        {
          localg.a(localXmlPullParser.nextText());
        }
        else if ("error_code".equals(localXmlPullParser.getName()))
        {
          localg.b(localXmlPullParser.nextText());
        }
        else if ("token".equals(localXmlPullParser.getName()))
        {
          localg.c(localXmlPullParser.nextText());
        }
        else if ("bank".equals(localXmlPullParser.getName()))
        {
          localj = new j();
        }
        else if ("bank_code".equals(localXmlPullParser.getName()))
        {
          localj.a(localXmlPullParser.nextText());
        }
        else if ("bank_name".equals(localXmlPullParser.getName()))
        {
          localj.b(localXmlPullParser.nextText());
        }
        else if ("act_id".equals(localXmlPullParser.getName()))
        {
          localj.c(localXmlPullParser.nextText());
        }
        else if ("card_type".equals(localXmlPullParser.getName()))
        {
          localj.d(localXmlPullParser.nextText());
        }
        else if ("bind_id".equals(localXmlPullParser.getName()))
        {
          localj.e(localXmlPullParser.nextText());
        }
        else if ("digital_sign".equals(localXmlPullParser.getName()))
        {
          localg.d(localXmlPullParser.nextText());
          continue;
          if (("bank".equals(localXmlPullParser.getName())) && (localj != null))
          {
            localArrayList.add(localj);
            localg.a(localArrayList);
            localj = null;
          }
        }
      }
    }
    return localg;
  }

  public static e d(InputStream paramInputStream)
  {
    e locale = new e();
    XmlPullParser localXmlPullParser = Xml.newPullParser();
    localXmlPullParser.setInput(paramInputStream, "utf-8");
    int i = localXmlPullParser.getEventType();
    if (i != 1)
    {
      switch (i)
      {
      default:
      case 2:
      }
      while (true)
      {
        i = localXmlPullParser.next();
        break;
        if ("is_success".equals(localXmlPullParser.getName()))
          locale.a(localXmlPullParser.nextText());
        else if ("error_code".equals(localXmlPullParser.getName()))
          locale.b(localXmlPullParser.nextText());
        else if ("token".equals(localXmlPullParser.getName()))
          locale.c(localXmlPullParser.nextText());
        else if ("merchant_code".equals(localXmlPullParser.getName()))
          locale.d(localXmlPullParser.nextText());
        else if ("order_id".equals(localXmlPullParser.getName()))
          locale.e(localXmlPullParser.nextText());
        else if ("order_amount".equals(localXmlPullParser.getName()))
          locale.f(localXmlPullParser.nextText());
        else if ("digital_sign".equals(localXmlPullParser.getName()))
          locale.g(localXmlPullParser.nextText());
      }
    }
    return locale;
  }

  public static com.dinpay.plugin.b.f e(InputStream paramInputStream)
  {
    com.dinpay.plugin.b.f localf = new com.dinpay.plugin.b.f();
    XmlPullParser localXmlPullParser = Xml.newPullParser();
    localXmlPullParser.setInput(paramInputStream, "utf-8");
    int i = localXmlPullParser.getEventType();
    if (i != 1)
    {
      switch (i)
      {
      default:
      case 2:
      }
      while (true)
      {
        i = localXmlPullParser.next();
        break;
        if ("is_success".equals(localXmlPullParser.getName()))
          localf.a(localXmlPullParser.nextText());
        else if ("error_code".equals(localXmlPullParser.getName()))
          localf.b(localXmlPullParser.nextText());
        else if ("token".equals(localXmlPullParser.getName()))
          localf.c(localXmlPullParser.nextText());
        else if ("digital_sign".equals(localXmlPullParser.getName()))
          localf.d(localXmlPullParser.nextText());
      }
    }
    return localf;
  }

  public static i f(InputStream paramInputStream)
  {
    i locali = new i();
    XmlPullParser localXmlPullParser = Xml.newPullParser();
    localXmlPullParser.setInput(paramInputStream, "utf-8");
    int i = localXmlPullParser.getEventType();
    if (i != 1)
    {
      switch (i)
      {
      default:
      case 2:
      }
      while (true)
      {
        i = localXmlPullParser.next();
        break;
        if ("is_success".equals(localXmlPullParser.getName()))
          locali.a(localXmlPullParser.nextText());
        else if ("error_code".equals(localXmlPullParser.getName()))
          locali.b(localXmlPullParser.nextText());
        else if ("merchant_code".equals(localXmlPullParser.getName()))
          locali.d(localXmlPullParser.nextText());
        else if ("token".equals(localXmlPullParser.getName()))
          locali.c(localXmlPullParser.nextText());
        else if ("order_id".equals(localXmlPullParser.getName()))
          locali.e(localXmlPullParser.nextText());
        else if ("order_no".equals(localXmlPullParser.getName()))
          locali.f(localXmlPullParser.nextText());
        else if ("order_amount".equals(localXmlPullParser.getName()))
          locali.g(localXmlPullParser.nextText());
        else if ("date".equals(localXmlPullParser.getName()))
          locali.h(localXmlPullParser.nextText());
        else if ("digital_sign".equals(localXmlPullParser.getName()))
          locali.i(localXmlPullParser.nextText());
      }
    }
    return locali;
  }

  public static a g(InputStream paramInputStream)
  {
    a locala = new a();
    ArrayList localArrayList = new ArrayList();
    XmlPullParser localXmlPullParser = Xml.newPullParser();
    localXmlPullParser.setInput(paramInputStream, "utf-8");
    int i = localXmlPullParser.getEventType();
    b localb = null;
    if (i != 1)
    {
      switch (i)
      {
      default:
      case 2:
      case 3:
      }
      while (true)
      {
        i = localXmlPullParser.next();
        break;
        if ("is_success".equals(localXmlPullParser.getName()))
        {
          locala.b(localXmlPullParser.nextText());
        }
        else if ("error_code".equals(localXmlPullParser.getName()))
        {
          locala.c(localXmlPullParser.nextText());
        }
        else if ("digital_sign".equals(localXmlPullParser.getName()))
        {
          locala.d(localXmlPullParser.nextText());
        }
        else if ("token".equals(localXmlPullParser.getName()))
        {
          locala.a(localXmlPullParser.nextText());
        }
        else if ("paychannel".equals(localXmlPullParser.getName()))
        {
          localb = new b();
        }
        else if ("name".equals(localXmlPullParser.getName()))
        {
          localb.e(localXmlPullParser.nextText());
        }
        else if ("id".equals(localXmlPullParser.getName()))
        {
          localb.a(localXmlPullParser.nextText());
        }
        else if ("bank_code".equals(localXmlPullParser.getName()))
        {
          localb.b(localXmlPullParser.nextText());
        }
        else if ("card_type".equals(localXmlPullParser.getName()))
        {
          localb.d(localXmlPullParser.nextText());
        }
        else if ("channel_code".equals(localXmlPullParser.getName()))
        {
          localb.c(localXmlPullParser.nextText());
          continue;
          if (("paychannel".equals(localXmlPullParser.getName())) && (localb != null))
          {
            localArrayList.add(localb);
            locala.a(localArrayList);
            localb = null;
          }
        }
      }
    }
    return locala;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.dinpay.plugin.d.f
 * JD-Core Version:    0.6.2
 */